<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>v-bind</title>
    <!-- 开发环境版本，包含了有帮助的命令行警告 -->
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
  </head>
  <body>
    <!-- View -->
    <div id="app">
      <!-- 完整写法 -->
      <!-- <img v-bind:src="imgUrl" alt="" /> -->
      <!-- 简化写法 -->
      <img :src="imgUrl" />
    </div>

    <script>
      // view-model
      new Vue({
        el: '#app',
        // model
        data: {
          imgUrl: 'https://t7.baidu.com/it/u=1951548898,3927145&fm=193&f=GIF'
        }
      })
    </script>
  </body>
</html>
